package com.ideajava.test;

import java.util.List;

import com.geccocrawler.gecco.annotation.Attr;
import com.geccocrawler.gecco.annotation.HtmlField;
import com.geccocrawler.gecco.annotation.Text;
import com.geccocrawler.gecco.spider.HrefBean;
import com.geccocrawler.gecco.spider.HtmlBean;

/**
 * @Description :
 * @FileName: Page.java
 * @Author :WeiHui.Zhang
 * @Data : 2016年3月25日 下午3:02:52
 * @Version:V1.00
 */
public class Page implements HtmlBean {

	private static final long serialVersionUID = 1L;

	@Text
	@HtmlField(cssPath = ".title")
	private List<HrefBean> title;

	@Text
	@HtmlField(cssPath = "a:nth-child(2)")
	private String author;

	@Attr(value="datetime")
	@HtmlField(cssPath = ".timeago")
	private String date;

	public List<HrefBean> getTitle() {
		return title;
	}
	
	public void setTitle(List<HrefBean> title) {
		this.title = title;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

}
